﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BtLabelModel
{
    public class HttpModel
    {
        public class GetLabelInfoRb
        {
            public string msg { get; set; }
            public DataLoad dataLoad { get; set; }
            public class DataLoad
            {
                public int id { get; set; }
                /// <summary>
                /// 设备名称
                /// </summary>
                public string name { get; set; }
                /// <summary>
                /// 设备类型
                /// </summary>
                public int deviceType { get; set; }
                public int userId { get; set; }
                /// <summary>
                /// 设备mac地址
                /// </summary>
                public string macAddress { get; set; }
                /// <summary>
                /// 设备当前使用网关
                /// </summary>
                public int cgateway_id { get; set; }
                /// <summary>
                /// 设备最新上报网关
                /// </summary>
                public int lgateway_id { get; set; }
                /// <summary>
                /// 设备在线状态
                /// </summary>
                public bool state { get; set; }
                /// <summary>
                /// 电量
                /// </summary>
                public string battery { get; set; }
                /// <summary>
                /// 设备软件版本
                /// </summary>
                public string ver { get; set; }
                /// <summary>
                /// 设备当前使用网关信号强度
                /// </summary>
                public string slevel { get; set; }
            }
        }
        /// <summary>
        /// 刷新设备接口请求body
        /// </summary>
        public class RefreshLabelDto
        {
            /// <summary>
            /// 要刷新设备的mac地址数组 ['C3 0E 16 3C F8 F8', 'CB 09 87 DF 8E A6']
            /// </summary>
            public string mac { get; set; }
            /// <summary>
            /// 消息id(字符串，标记该刷图指令，后台会根据该id给前端回复刷图状态（websocket协议）)
            /// </summary>
            public string ser_id { get; set; }
            /// <summary>
            /// 对应图片存放的地址
            /// (自己的图片服务器:例如http://118.190.98.116:8196/myimages/,
            /// 然后你的图片就是以MAC地址作为名字：C30E163CF8F8.jpg，
            /// 如果msg为’’则刷新默认图片（显示mac地址和二维码）)
            /// </summary>
            public string msg { get; set; }
        }
        
        /// <summary>
        /// 刷新设备接口返回body
        /// </summary>
        public class RefreshLabelRb
        {
            /// <summary>
            /// mac
            /// </summary>
            public string mac { get; set; }
            /// <summary>
            /// 0
            /// </summary>
            public int code { get; set; }
            /// <summary>
            ///  "设备刷新成功"
            /// </summary>
            public string des { get; set; }
        }

        /// <summary>
        /// 点灯请求body
        /// </summary>
        public class LightLedDto
        {
            /// <summary>
            /// 要刷新设备的mac地址数组 ['C3 0E 16 3C F8 F8', 'CB 09 87 DF 8E A6']
            /// </summary>
            public string mac { get; set; }
            /// <summary>
            /// 消息id(字符串，标记该刷图指令，后台会根据该id给前端回复刷图状态（websocket协议）)
            /// </summary>
            public string ser_id { get; set; }

            public string mode { get; set; }
            public string time { get; set; }
            public string otime { get; set; }
            public string cycle { get; set; }
            public string color { get; set; }
        }

        /// <summary>
        /// 点灯返回body
        /// </summary>
        public class LightLedRb
        {
            /// <summary>
            /// mac
            /// </summary>
            public string mac { get; set; }
            /// <summary>
            /// 0
            /// </summary>
            public int code { get; set; }
            /// <summary>
            ///  "设备刷新成功"
            /// </summary>
            public string des { get; set; }
        }

        public class SignUpDto
        {
            public string mac { get; set; }
            public string type { get; set; }
            public int rssi { get; set; }
            public string version { get; set; }
            public long ts { get; set; }
        }

        public class SignUpRb
        {
            /// <summary>
            /// 200
            /// </summary>
            public int code { get; set; }
            public object data { get; set; }
        }
    }
}
